package com.egao.common.component.scheduled;

import com.egao.common.module.push.service.PushMsgService;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author qiujunfeng
 * @date 2024-05-17
 */
@ApiModel(description = "定时推送消息任务")
@Slf4j
@Component
public class PushMsgScheduled {

    @Autowired
    private PushMsgService pushMsgService;

//    @Scheduled(cron = "0 0 20 ? * *")
//    @ApiOperation("每天20点定时推送学生信息")
//    public void scheduledPushMsg() {
//        pushMsgService.pushMsg();
//    }
}
